import Vue from 'vue';
import VueRouter from 'vue-router';
import Home from '../views/Home.vue'
import User from '../views/User.vue'
Vue.use(VueRouter)

const routes =[
    {path:'/home',component:Home},
    {path:'/user',component:User},
]

const router = new VueRouter({
    routes // short for `routes: routes`
  })


export default router

